﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VAdvantage.Print
{
    public class HTMLElement : PrintElement
    {
        public HTMLElement(string elem)
        {
        }

        public override void PaintPdf(PdfSharp.Drawing.XGraphics g2D, int pageNo, PdfSharp.Drawing.XPoint pageStart, Utility.Ctx ctx, bool isView)
        {
            throw new NotImplementedException();
        }

        protected override bool CalculateSize()
        {
            throw new NotImplementedException();
        }

        internal static bool IsHTML(Object content)
        {
            if (content == null)
                return false;
            String s = content.ToString();
            if (s.Length < 20)	//	assumption
                return false;
            s = s.Trim().ToUpper();
            if (s.StartsWith("<HTML>"))
                return true;
            return false;
        }

        public override Classes.Query GetDrillDown(Point relativePoint, int pageNo)
        {
            throw new NotImplementedException();
        }

        public override Classes.Query GetDrillAcross(Point relativePoint, int pageNo)
        {
            throw new NotImplementedException();
        }

        public override void Paint(Canvas g2D, int pageNo, PdfSharp.Drawing.XPoint pageStart, Utility.Ctx ctx, bool isView)
        {
            //throw new NotImplementedException();
        }
    }
}
